﻿using System;

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace MVCBootstrap.MongoDB {

	public class Role {
		[BsonId]
		public ObjectId Id { get; set; }
		[BsonElement(RoleFieldNames.ApplicationName)]
		public String ApplicationName { get; set; }
		[BsonElement(RoleFieldNames.RoleName)]
		public String RoleName { get; set; }
	}

	internal static class RoleFieldNames {
		public const String Id = "_id";
		public const String ApplicationName = "applicationname";
		public const String RoleName = "role";
	}
}